import type { RouteRecordRaw } from 'vue-router';
import RouterView from '@/layout/routerView/index.vue';

const moduleName = 'supervision';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/supervision',
    component: RouterView,
    redirect: '/supervision/task',
    meta: {
      title: '消防督查检查',
      hideInMenu: true,
    },
    children: [
      {
        path: 'create-task',
        name: `${moduleName}-create-task`,
        component: () => import('@/views/supervision/create-task/index.vue'),
        meta: { title: '创建任务', hideInMenu: true },
      },
      {
        path: 'task-view',
        name: `${moduleName}-task-view`,
        component: () => import('@/views/supervision/task-view/index.vue'),
        meta: { title: '查看任务', hideInMenu: true },
      },
      {
        path: 'handleTask',
        name: `${moduleName}-handleTask`,
        component: () => import('@/views/supervision/handleTask/index.vue'),
        meta: { title: '任务处理', hideInMenu: true },
      },
      // {
      //   path: 'case-management',
      //   name: `${moduleName}-case-management`,
      //   component: () => import('@/views/supervision/case-management/index.vue'),
      //   meta: { title: '案件管理' },
      // },
      // {
      //   path: 'case-approval',
      //   name: `${moduleName}-case-approval`,
      //   component: () => import('@/views/supervision/case-approval/index.vue'),
      //   meta: { title: '案件审批' },
      // },
      // {
      //   path: 'archive-query',
      //   name: `${moduleName}-archive-query`,
      //   component: () => import('@/views/supervision/archive-query/index.vue'),
      //   meta: { title: '档案查询' },
      // },
    ],
  },
];

export default routes;
